package day7;

import day6.pet.Dog;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestString {
    public static void main(String[] args) {
        Dog d=new Dog("哮天犬",100,100,"公","探员犬");
        System.out.println(d);
       /// String str=d+"!!!!";

       // System.out.println(str);

        Dog d2=new Dog("哮天犬",56,78,"母","狼狗");
        //>>>System.out.println(d==d2);
        boolean f=d.equals(d2);//String equals 逻辑相等。。。
        System.out.println("对象是否是逻辑相等："+f);
    }
}
